package com.ea.admin.service;

import com.ea.admin.pojo.param.datasource.*;
import com.ea.admin.pojo.vo.datasource.*;

public interface DataSourceService {

    Long DEFAULT_DATA_SOURCE_ID = 1L;

    GetDataSourceListVo getDataSourceList(Long accountId, String name, String sourceIp, Integer page, Integer pageSize);

    DataSourceVo addDataSource(Long accountId, AddDataSourceParam param);

    DataSourceVo editDataSource(Long accountId, EditDataSourceParam param);

    String deleteDataSource(Long accountId, DeleteDataSourceParam param);

    Long getDataSourceByToken(String token);

    String getDataSourceNameById( Long dataSourceId);
}